SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.[DnnProduct_DeleteSiteLog]
	@DateTime                      datetime, 
	@PortalID                      int

AS
	DELETE FROM dbo.DnnProduct_SiteLog WITH(READPAST)
	WHERE  PortalId = @PortalID
		AND    DateTime < @DateTime
GO
